#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>

#include "zlog.h"
#include "yys_thread.h"

int init_zlog()
{
    char *logFile = "../zlog/zlog.conf";
    int rc = dzlog_init(logFile, "base_cat");
    if (rc) {
        printf("zlog init failed\n");
        return -1;
    }

    return 0;
}

int software_init()
{
    init_zlog();

    return 0;
}

int software_deinit()
{
    zlog_fini();

    return 0;
}

int main(){
    software_init();

    create_thread();

    software_deinit();

    return 0;
}
